package com.balabala.gym_goods.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_spu")
public class Spu implements Serializable {

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;

    //商品名称
    private String name;

    //主图
    private String img;

    //图册
    private String album;

    //现价
    private String price;

    //原价
    private String originPrice;

    //状态
    private String state;

    //标签
    private String tag;

    //销量
    private String sales;

    //简介
    private String introduce;

    //详细信息
    private String detail;

    //视频
    private String vdt;

    //商品分类id
    private Long categoryId;

    //商品类型id
    private Long spu_type_id;

    //单位 元，积分
    private String unit;

    //创建时间
    @TableField("create_time")
    private Date createTime;

    //更新时间
    @TableField("update_time")
    private Date updateTime;

}
